using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using com.creditos.be.liclEntities;

namespace com.creditos.be.liclBases
{   
    public partial class DatGen : Entity
    {

        private Int32 intOrigenSolicitudField;
        public Int32 OrigenSolicitud
        {
            get { return intOrigenSolicitudField; }
            set { intOrigenSolicitudField = value; }
        }

        private decimal intNumeroSolicitudField;
        public decimal NumeroSolicitud
        {
            get { return intNumeroSolicitudField; }
            set { intNumeroSolicitudField = value; }
        }

        private Int32 intCodigoIntegranteField;        
        public Int32 CodigoIntegrante
        {
            get { return intCodigoIntegranteField; }
            set { intCodigoIntegranteField = value; }
        }

        private Int32 intCodigoConsultaField;
        public Int32 CodigoConsulta
        {
            get { return intCodigoConsultaField; }
            set { intCodigoConsultaField = value; }
        }

        private Int32 intTipoDocumentoField;
        [Column("dgeCodTipoDocumento")]
        public Int32 TipoDocumento
        {
            get { return intTipoDocumentoField; }
            set { intTipoDocumentoField = value; }
        }


        private System.String strTipoPersonaField = string.Empty;
        [Column("dgeTipPersona")]
        public System.String TipoPersona
        {
            get { return strTipoPersonaField; }
            set { strTipoPersonaField = value; }
        }

        private System.String NroDocumentoField = string.Empty;
        [Column("dgeCodNroDocumento")]
        public System.String NroDocumento
        {
            get { return NroDocumentoField.Trim(); }
            set { NroDocumentoField = value; }
        }

        private System.String NroCodTriField = string.Empty;
        [Column("dgeDesRuc")]
        public System.String NroRuc
        {
            get { return NroCodTriField.Trim(); }
            set { NroCodTriField = value; }
        }

        private System.String NomClienteField = string.Empty;
        [Column("dgeDesNombre")]
        public System.String NomCliente
        {
            get
            {
                if (NomClienteField.Length > 60)
                    return NomClienteField.Substring(0, 60);
                return NomClienteField; 
            }
            set { NomClienteField = value; }
        }

        private System.String NomComercialField = string.Empty;
        [Column("dgeDesNombreComercial")]
        public System.String NomComercial
        {
            get
            {
                if (NomComercialField.Length > 50)
                    return NomComercialField.Substring(0, 50);
                return NomComercialField;
            }
            set { NomComercialField = value; }
        }

        private System.String NomDepartamentoField = string.Empty;
        [Column("dgeDesDepartamento")]
        public System.String NomDepartamento
        {
            get 
            {
                if (NomDepartamentoField.Length > 40)
                    return NomDepartamentoField.Substring(0, 40);
                return NomDepartamentoField ;
            }
            set { NomDepartamentoField = value; }
        }

        private System.String NomProvinciaField = string.Empty;
        [Column("dgeDesProvincia")]
        public System.String NomProvincia
        {
            get 
            {
                if (NomProvinciaField.Length > 40)
                    return NomProvinciaField.Substring(0, 40);
                return NomProvinciaField; 
            }
            set { NomProvinciaField = value; }
        }

        private System.String NomDistritoField = string.Empty;
        [Column("dgeDesDistrito")]
        public System.String NomDistrito
        {
            get 
            {
                if (NomDistritoField.Length > 50)
                    return NomDistritoField.Substring(0, 50);
                return NomDistritoField; 
            }
            set { NomDistritoField = value; }
        }

        private System.String NomDirreccionField = string.Empty;
        [Column("dgeDesDireccion")]
        public System.String NomDirreccion
        {
            get 
            {
                if (NomDirreccionField.Length > 60)
                    return NomDirreccionField.Substring(0, 60);
                return NomDirreccionField; 
            
            }
            set { NomDirreccionField = value; }
        }

        private System.String TipoDomicilioField = string.Empty;        
        public System.String TipoDomicilio
        {
            get
            {
                if (TipoDomicilioField.Length > 30)
                    return TipoDomicilioField.Substring(0, 30);
                return TipoDomicilioField; 
            }
            set { TipoDomicilioField = value; }
        }

        private System.String NomContriField = string.Empty;
        [Column("dgeDesTipoContribuyente")]
        public System.String TipoContribuyente
        {
            get
            {
                if (NomContriField.Length > 50)
                    return NomContriField.Substring(0, 50);
                return NomContriField;
            }
            set { NomContriField = value; }
        }

        private System.String NomCIIUField = string.Empty;
        [Column("dgeDesActividad")]
        public System.String Actividad
        {
            get
            {
                if (NomCIIUField.Length > 50)
                    return NomCIIUField.Substring(0, 50);
                return NomCIIUField; 
            }
            set { NomCIIUField = value; }
        }

        private DateTime FechaNacimientoField;
        [Column("dgeFecNacimiento")]
        public DateTime FechaNacimiento
        {
            get { return FechaNacimientoField; }
            set { FechaNacimientoField = value; }
        }

        private System.String NumTelefonoField = string.Empty;
        [Column("dgeDesTelefono")]
        public System.String NumTelefono
        {
            get 
            {
                if (NumTelefonoField.Length > 10)
                    return NumTelefonoField.Substring(0, 10);
                return NumTelefonoField; 
            }
            set { NumTelefonoField = value; }
        }

        private System.String NumTelFaxField = string.Empty;
        [Column("dgeDesFax")]
        public System.String NumTelFax
        {
            get 
            {
                if (NumTelFaxField.Length > 10)
                    return NumTelFaxField.Substring(0, 10);
               return NumTelFaxField; 
            }
            set { NumTelFaxField = value; }
        }

        private System.String strCondicionSunatField = string.Empty;        
        public System.String CondicionSunat
        {
            get { return strCondicionSunatField.Trim(); }
            set { strCondicionSunatField = value; }
        }

    }
}
